const gates = ["BCDDC2D71F24", "30AEA4CBD1C4", "30AEA4CBD2D8", "30AEA4C592D4"];

gates.forEach(deviceNo => {
  $http.post({
    url: "https://louxiaoyuapi.etor.vip/api/doorway/v1/device/OpenDoorWX",
    header: {
      "Content-Type": "application/json",
    },
    body: {
      openid: "oVUUc5NKao2SSq7L24notLR_aNB8",
      deviceNo,
    },
  });
});
